/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Pe.edu.unmsm.SIASS.DAOImpl;

import Pe.edu.unmsm.SIASS.DAO.PersonaDao;
import Pe.edu.unmsm.SIASS.Dominio.Alumno;
import Util.HibernateUtil;
import java.util.List;
import org.hibernate.Session;

/**
 *
 * @author FELIPE
 */
public class PersonaDaoImpl implements PersonaDao{

    @Override
    public List<Alumno> BuscarAlumnosxHorarioCurso() {
        Session session = HibernateUtil.getSessionFactory().openSession();
        return session.createQuery("Select alu from Alumno alu, Persona per where alu.persona = per.idPersona").list();
    }
    
}
